<?php 
class LoginModel extends BaseModel {
	public function getUser($uname) {
		$data = D('Admin')->where(array('uname'=>$uname,'is_del'=>0))->find();
		return $data;
	}
	public function add_logintime($aid) {
		$map['login_time'] = time();
		$data = D('Admin')->where(array('aid'=>$aid))->save($map);
		if($data){
			return true;	
		}
	}
	public function sign_out(){
		$re = $this->logout();
		return $re;
	}
}
?>